package com.k2.gulimall.member.service.impl;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.k2.common.utils.PageUtils;
import com.k2.gulimall.member.dao.MemberDao;
import com.k2.gulimall.member.dao.MemberDetailsDao;
import com.k2.gulimall.member.entity.MemberEntity;
import com.k2.gulimall.member.service.MemberDetailsService;
import com.k2.gulimall.member.vo.MemberDetailsVo;
import org.checkerframework.checker.units.qual.A;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service("MemberDetailsService")
public class MemberDetailsServiceImpl extends ServiceImpl<MemberDetailsDao, MemberDetailsVo> implements MemberDetailsService {
    @Autowired
    MemberDetailsDao memberDetailsDao;

    @Override
    public MemberDetailsVo getMemberDetails(Long id) {
        QueryWrapper<MemberDetailsVo> queryWrapper = new QueryWrapper<MemberDetailsVo>();
        queryWrapper.eq("um.id",id);
        return memberDetailsDao.getMemberDetails(queryWrapper);
    }
}
